package com.sanyang.lawyer.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;



@Data
@ToString
@TableName("case_law")
public class Case_law {  //案件表

    //案号
    private  String caseId;

    //委托客户外键
    private  Client clientId;

    //对方当事人客户外键
    private  Client oppositeId;

    //案由（案件性质内容内容简介）
    private  String causeOfAction;

    //案件冲突详情
    private  String causeDetails;

    //案件当前状态
    private  String caseStatus;
    
    //结案时间·
    private Date caseTime;

    //第三方（委托人对立方单位）
    private  String thirdParty;

    //委托人在事件中地位（原 | 被）
    private  String locusStandi;

    //诉讼标的（诉讼目的）
    private  String objectOfAction;

    //案件类型外键id
    private  Case_type caseTypeid;

    //专属案件号
    private  String exclusiveCaseid;

    //案件文件存放地址
    private  String recordFilepath;

    //文件名称
    private  String recordFilename;

    //提交人外键关联用户表
    private  System_user submitId;

    //提交时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date submitDate;

    //提交备注
    private  String comment;

    //承办律师外键律师
    private Hr_emp mainLawyer;

    //代理费用
    private  double agencyMoney;

    //杂费
    private  double blendMoney;

    //应付金额
    private  double amountMoney;

    //实付金额
    private  double realityMoney;
    
    //未付金额
    private double case_unpaidsal;
    

    //开票金额
    private  double invoiceMoney;

    //法院外键id
    private  Case_court courtId;

    //开庭日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sessionDate;

    //立庭日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date stateSessionDate;

    //宣判日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date trialDate;

    //收案审批状态
    private  String closeState;

    //收案方式
    private  String closeMode;

    //收案时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date closeDate;
    
    private int version;
    
}
